package com.kaijie.service.impl;

import org.springframework.stereotype.Service;

import java.util.Map;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.kaijie.dao.RoomSortInfnDao;
import com.kaijie.entity.RoomSortInfnEntity;
import com.kaijie.service.RoomSortInfnService;
import com.kaijie.utils.PageUtils;
import com.kaijie.utils.Query;


@Service("roomSortInfnService")
public class RoomSortInfnServiceImpl extends ServiceImpl<RoomSortInfnDao, RoomSortInfnEntity> implements RoomSortInfnService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<RoomSortInfnEntity> page = this.page(
                new Query<RoomSortInfnEntity>().getPage(params),
                new QueryWrapper<RoomSortInfnEntity>()
        );

        return new PageUtils(page);
    }

}
